export const testRouter = [
    {
        name: 'joint',
        path: '/joint',
        redirect: '/joint/dashboard',
        hidden: false,
        component: 'Layout',
        alwaysShow: true,
        meta: {
            title: '联合运营',
            icon: '#',
            noCache: false,
            link: null,
        },
        children: [
            {
                path: 'dashboard',
                component: '/index',
                name: 'dashboard',
                meta: { title: '工作台', icon: 'dashboard', affix: true },
            },
            {
                name: 'business-management',
                path: '/business-management',
                hidden: false,
                redirect: '/business-management/company-org',
                component: 'Layout',
                alwaysShow: true,
                meta: {
                    title: '企业管理',
                    icon: '#',
                    noCache: false,
                    link: null,
                },
                children: [
                    {
                        name: 'application-settlement-detail',
                        activeMenu: '/business-management/application-settlement-list',
                        path: 'application-settlement-detail',
                        hidden: true,
                        component: '/business-management/application-settlement/detail',
                        meta: {
                            title: '入驻申请详情',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'admin-company-org',
                        path: 'company-org',
                        hidden: false,
                        component: '/company-org/index',
                        meta: {
                            title: '企业管理',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'admin-add-enterprise',
                        activeMenu: '/business-management/company-org',
                        path: 'add-enterprise',
                        hidden: true,
                        component: '/company-org/component/add',
                        meta: {
                            title: '添加企业',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'admin-edit-enterprise',
                        activeMenu: '/business-management/company-org',
                        path: 'edit-enterprise',
                        hidden: true,
                        component: '/company-org/component/add',
                        meta: {
                            title: '编辑企业',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'admin-personnel-organizational-index',
                        activeMenu: '/business-management/company-org',
                        path: 'personnel-organizational',
                        hidden: true,
                        component: '/company-org/personnel-organizational/index',
                        meta: {
                            title: '组织机构',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'admin-personnel-organizational-addPeople',
                        activeMenu: '/business-management/company-org',
                        path: 'personnel-organizational/addPeople',
                        hidden: true,
                        component: '/company-org/personnel-organizational/component/add/index',
                        meta: {
                            title: '新增人员',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'admin-department-management-index',
                        activeMenu: '/business-management/company-org',
                        path: 'department-management',
                        hidden: true,
                        component: '/company-org/department-management/index',
                        meta: {
                            title: '部门管理',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },

                ],
            },
            {
                name: 'admin',
                path: '/admin',
                hidden: false,
                redirect: '/admin/organizational',
                component: 'Layout',
                alwaysShow: true,
                meta: {
                    title: '系统管理',
                    icon: 'system',
                    noCache: false,
                    link: null,
                },
                children: [
                    {
                        name: 'personnel-organizational',
                        path: 'organizational',
                        hidden: false,
                        component: '/fl/pages/personnel-organizational/index',
                        alwaysShow: true,
                        meta: {
                            title: '组织机构',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                        children: [
                            {
                                name: 'addPeople',
                                activeMenu: '/admin/organizational',
                                path: 'addPeople',
                                hidden: true,
                                component: '/fl/pages/personnel-organizational/component/add/index',
                                meta: {
                                    title: '新增人员',
                                    icon: '#',
                                    noCache: false,
                                    link: null,
                                },
                            },
                            {
                                name: 'addSection',
                                activeMenu: '/admin/organizational',
                                path: 'addSection',
                                hidden: true,
                                component: '/fl/pages/personnel-organizational/component/add-section/index',
                                meta: {
                                    title: '新增部门',
                                    icon: '#',
                                    noCache: false,
                                    link: null,
                                },
                            },
                        ],
                    },
                    {
                        name: 'admin-org-role',
                        path: 'org-role',
                        hidden: false,
                        component: '/org-role/index',
                        alwaysShow: true,
                        meta: {
                            title: '企业角色管理',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                        children: [
                            {
                                name: 'add-org-Role',
                                activeMenu: '/admin/org-role',
                                path: 'add-org-role',
                                hidden: true,
                                component: '/org-role/component/add-role',
                                meta: {
                                    title: '新增角色',
                                    icon: '#',
                                    noCache: false,
                                    link: null,
                                },
                            },
                        ],
                    },
                    {
                        name: 'admin-privilege',
                        path: 'privilege',
                        hidden: false,
                        component: '/rights-management/index',
                        meta: {
                            title: '权限管理',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'role-authority',
                        path: 'authority',
                        hidden: false,
                        component: '/role-authority/index',
                        alwaysShow: true,
                        meta: {
                            title: '角色权限管理',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                        children: [
                            {
                                name: 'addRole',
                                activeMenu: '/admin/authority',
                                path: 'addRole',
                                hidden: true,
                                component: '/role-authority/component/add-role/index',
                                meta: {
                                    title: '新增角色',
                                    icon: '#',
                                    noCache: false,
                                    link: null,
                                },
                            },
                        ],
                    },

                    {
                        name: 'exploit-setting',
                        path: 'exploit-setting',
                        hidden: false,
                        component: 'ParentView',
                        alwaysShow: true,
                        meta: {
                            title: '开发设置',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                        children: [
                            {
                                name: 'app-management',
                                path: 'app-management',
                                hidden: false,
                                component: '/app-management/index',
                                meta: {
                                    title: '应用管理',
                                    icon: '#',
                                    noCache: false,
                                    link: null,
                                },
                            },
                        ],
                    },
                    {
                        name: 'user-manage',
                        path: 'user-manage',
                        hidden: false,
                        component: '/user-manage/index',
                        meta: {
                            title: '用户管理',
                            icon: 'user',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'admin-role',
                        path: 'role',
                        hidden: false,
                        component: '/admin-role/index',
                        alwaysShow: true,
                        meta: {
                            title: '角色管理',
                            icon: 'peoples',
                            noCache: false,
                            link: null,
                        },
                        children: [
                            {
                                name: 'role-auth-user',
                                activeMenu: '/admin/role',
                                path: 'auth-user/:id',
                                hidden: true,
                                component: '/admin-role/authUser',
                                meta: {
                                    title: '分配用户',
                                    icon: '#',
                                    noCache: false,
                                    link: null,
                                },
                            },
                        ],
                    },
                    {
                        name: 'menu-management',
                        path: 'menu-management',
                        hidden: false,
                        component: '/menu-manage/index',
                        meta: {
                            title: '菜单管理',
                            icon: 'tree-table',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'department-manage',
                        path: 'department',
                        hidden: false,
                        component: '/department-manage/index',
                        meta: {
                            title: '部门管理',
                            icon: 'tree',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'log-manage',
                        path: 'log-manage',
                        hidden: false,
                        component: 'ParentView',
                        alwaysShow: true,
                        meta: {
                            title: '日志管理',
                            icon: 'log',
                            noCache: false,
                            link: null,
                        },
                        children: [
                            {
                                name: 'log-manage-operate-log',
                                path: 'operate-log',
                                hidden: false,
                                component: '/log-manage/operate-log/index',
                                meta: {
                                    title: '操作日志',
                                    icon: 'form',
                                    noCache: false,
                                    link: null,
                                },
                            },
                            {
                                name: 'log-manage-enter-log',
                                path: 'enter-log',
                                hidden: false,
                                component: '/log-manage/enter-log/index',
                                meta: {
                                    title: '登录日志',
                                    icon: 'logininfor',
                                    noCache: false,
                                    link: null,
                                },
                            },
                        ],
                    },
                ],
            },
        ],
    },

]

export const userRouters = [
    {
        name: 'joint',
        path: '/joint',
        redirect: '/joint/dashboard',
        hidden: false,
        component: 'Layout',
        alwaysShow: true,
        meta: {
            title: '联合运营',
            icon: '#',
            noCache: false,
            link: null,
        },
        children: [
            {
                path: 'dashboard',
                component: '/index',
                name: 'dashboard',
                meta: { title: '工作台', icon: 'dashboard', affix: true },
            },

            {
                name: 'business-management',
                path: 'business-management',
                hidden: false,
                // redirect: '/business-management/company-org',
                component: 'ParentView',
                alwaysShow: true,
                meta: {
                    title: '企业管理',
                    icon: '#',
                    noCache: false,
                    link: null,
                },
                children: [
                    {
                        name: 'company-org',
                        path: 'company-org',
                        hidden: false,
                        component: '/company-org/index',
                        meta: {
                            title: '企业信息',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'add-enterprise',
                        activeMenu: '/business-management/company-org',
                        path: 'add-enterprise',
                        hidden: true,
                        component: '/company-org/component/add',
                        meta: {
                            title: '添加企业',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'edit-enterprise',
                        activeMenu: '/business-management/company-org',
                        path: 'edit-enterprise',
                        hidden: true,
                        component: '/company-org/component/add',
                        meta: {
                            title: '编辑企业',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },

                    {
                        name: 'personnel-organizational-addPeople',
                        activeMenu: '/business-management/company-org',
                        path: 'personnel-organizational/addPeople',
                        hidden: true,
                        component: '/company-org/personnel-organizational/component/add/index',
                        meta: {
                            title: '新增人员',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },

                    {
                        name: 'app-management',
                        path: 'app-management',
                        hidden: false,
                        component: '/app-management/index',
                        meta: {
                            title: '应用管理',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },
                ],
            },
            {
                name: 'admin',
                path: 'admin',
                hidden: false,
                // redirect: '/admin/organizational',
                component: 'ParentView',
                alwaysShow: true,
                meta: {
                    title: '系统管理',
                    icon: 'system',
                    noCache: false,
                    link: null,
                },
                children: [
                    {
                        name: 'personnel-organizational',
                        path: 'organizational',
                        hidden: false,
                        component: '/fl/pages/personnel-organizational/index',
                        alwaysShow: true,
                        meta: {
                            title: '组织机构',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                        children: [
                            {
                                name: 'addPeople',
                                activeMenu: '/admin/organizational',
                                path: 'addPeople',
                                hidden: true,
                                component: '/fl/pages/personnel-organizational/component/add/index',
                                meta: {
                                    title: '新增人员',
                                    icon: '#',
                                    noCache: false,
                                    link: null,
                                },
                            },
                            {
                                name: 'addSection',
                                activeMenu: '/admin/organizational',
                                path: 'addSection',
                                hidden: true,
                                component: '/fl/pages/personnel-organizational/component/add-section/index',
                                meta: {
                                    title: '新增部门',
                                    icon: '#',
                                    noCache: false,
                                    link: null,
                                },
                            },
                        ],
                    },

                    {
                        name: 'admin-role',
                        path: 'role',
                        hidden: false,
                        component: '/admin-role/index',
                        alwaysShow: true,
                        meta: {
                            title: '角色管理',
                            icon: 'peoples',
                            noCache: false,
                            link: null,
                        },
                        children: [
                            {
                                name: 'role-auth-user',
                                activeMenu: '/admin/role',
                                path: 'auth-user/:id',
                                hidden: true,
                                component: '/admin-role/authUser',
                                meta: {
                                    title: '分配用户',
                                    icon: '#',
                                    noCache: false,
                                    link: null,
                                },
                            },
                        ],
                    },

                    {
                        name: 'log-manage',
                        path: 'log-manage',
                        hidden: false,
                        component: 'ParentView',
                        alwaysShow: true,
                        meta: {
                            title: '日志管理',
                            icon: 'log',
                            noCache: false,
                            link: null,
                        },
                        children: [
                            {
                                name: 'log-manage-operate-log',
                                path: 'operate-log',
                                hidden: false,
                                component: '/log-manage/operate-log/index',
                                meta: {
                                    title: '操作日志',
                                    icon: 'form',
                                    noCache: false,
                                    link: null,
                                },
                            },
                            {
                                name: 'log-manage-enter-log',
                                path: 'enter-log',
                                hidden: false,
                                component: '/log-manage/enter-log/index',
                                meta: {
                                    title: '登录日志',
                                    icon: 'logininfor',
                                    noCache: false,
                                    link: null,
                                },
                            },
                        ],
                    },
                ],
            },
        ],
    },

    {
        name: 'new-house',
        path: '/new-house',
        hidden: false,
        redirect: '/new-house/flash/index',
        component: 'Layout',
        alwaysShow: true,
        meta: {
            title: '新房业务',
            icon: '#',
            noCache: false,
            link: null,
        },
        children: [
            {
                name: 'content-center-flash',
                path: 'flash',
                hidden: false,
                component: 'ParentView',
                alwaysShow: true,
                meta: {
                    title: '快讯管理',
                    icon: '#',
                    noCache: false,
                    link: null,
                },
                children: [
                    {
                        name: 'content-center-flash-index',
                        path: 'index',
                        hidden: false,
                        component: '/flash-management/index',
                        meta: {
                            title: '快讯管理',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },
                    {
                        name: 'content-center-flash-sortAndLabel',
                        path: 'sortAndLabel',
                        hidden: false,
                        component: '/flash-management/sortAndLabel',
                        meta: {
                            title: '分类和标签',
                            icon: '#',
                            noCache: false,
                            link: null,
                        },
                    },
                ],
            },

        ],
    },
]

export const iamMenulist = [
    {
        id: '30473',
        name: '企业管理',
        permissionCode: 'business:view',
        type: 1,
        sort: 1,
        parentId: '30476',
        path: '/business-management',
        icon: '',
        component: 'business-management',
        componentName: 'ParentView',
        disabled: false,
        redirect: '/joint/business-management/company-org',
        activeMenu: '',
    },
    {
        id: '30476',
        name: '联合运营',
        permissionCode: 'joint:view',
        type: 1,
        sort: 1,
        parentId: '0',
        path: '/joint',
        icon: '',
        component: 'Layout',
        componentName: 'joint',
        disabled: false,
        redirect: '/joint/business-management/company-org',
        activeMenu: '',
    },
    {
        id: '30474',
        name: '企业信息',
        permissionCode: 'company:view',
        type: 2,
        sort: 1,
        parentId: '30473',
        path: '/company-org',
        icon: '',
        component: '/company-org/index',
        componentName: 'company-org',
        disabled: false,
        redirect: '',
        activeMenu: '',
    },
]
